import request from "@/utils/request";

// 查询血糖记录列表
export function listBloodGlucose(query) {
  return request({
    url: "/workstation/bloodGlucose/list",
    method: "get",
    params: query,
  });
}

// 查询血糖记录详细
export function getBloodGlucose(id) {
  return request({
    url: "/workstation/bloodGlucose/" + id,
    method: "get",
  });
}

// 新增血糖记录
export function addBloodGlucose(data) {
  return request({
    url: "/workstation/bloodGlucose",
    method: "post",
    data: data,
  });
}

// 修改血糖记录
export function updateBloodGlucose(data) {
  return request({
    url: "/workstation/bloodGlucose",
    method: "put",
    data: data,
  });
}

// 删除血糖记录
export function delBloodGlucose(id) {
  return request({
    url: "/workstation/bloodGlucose/" + id,
    method: "delete",
  });
}

// 测试调用HIS病历信息接口
export function ceshihahaha() {
  return request({
    url: "/workstation/baseInfo/medical/info",
    method: "get",
  });
}
